import request from "@/utils/request.ts";
import {ReturnData} from "@/api/types/contacts.ts";

export const allUserContactsAdmin = () => {
    return request<ReturnData>({
        url: '/api/admin/get/all',
        method: 'GET'
    })
}

export const failUserContactsAdmin = () => {
    return request<ReturnData>({
        url: '/api/admin/failed',
        method: 'GET'
    })
}

export const openAuthority = (id: string) => {
    return request<ReturnData>({
        url: '/api/admin/authorization',
        method: 'GET',
        params: {
            id: id
        }
    })
}

export const forbiddenAuthority = (id: string) => {
    return request<ReturnData>({
        url: '/api/admin/forbidden',
        method: 'GET',
        params: {
            id: id
        }
    })
}

export const deleteStudent = (id: string) => {
    return request<ReturnData>({
        url: '/api/admin/delete',
        method: 'GET',
        params: {
            id: id
        }
    })
}
